﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Ideas2Realize.Helpers
{
    public static class ConfigHelper
    {
        public static string TemporaryUploadsPath
        {
            get
            {
                object obj = ConfigurationManager.AppSettings["TemporaryUploadsPath"];

                if (obj == null)
                    throw new Exception("TemporaryUploadsPath is not set in AppSettings in config-file.");

                return obj.ToString();

            }
        }
    }
}
